package elaborate.vwbe.annotation;

import java.util.*;

public class Annotation implements AnnotationArgument{
	private String name=null;
	private List<AnnotationArgument> arguments=new ArrayList<AnnotationArgument>();
	
	public String getName(){
		return this.name;
	}
	
	public void setName(String name){
		this.name=name;
	}
	
	public List<AnnotationArgument> getArguments(){
		return this.arguments;
	}
	
	public String toString(){
		StringBuffer buffer=new StringBuffer();
		buffer.append("@").append(name).append("(");
		boolean firstArgument=true;
		for(AnnotationArgument arg : arguments){
			if(!firstArgument){
				buffer.append(",");
			}
			buffer.append(arg.toString());
			firstArgument=false;
		}
		buffer.append(")");
		return buffer.toString();
	}
}